Learn R Programming

pbdMPI (version 0.4-6)

SPMD Control: Sets of controls in pbdMPI.

Description

These sets of controls are used to provide default values in this package.

Arguments

Format

Objects contain several parameters for communicators and methods.

Author

Wei-Chen Chen wccsnow@gmail.com, George Ostrouchov, Drew Schmidt, Pragneshkumar Patel, and Hao Yu.

Details

The elements of .pbd_env$SPMD.CT are default values for controls including

ElementsDefaultUsage
comm0La communicator index
intercomm2Lan inter communicator index
info0Lan info index
newcomm1La new communicator index
op"sum"an operation
port.name"spmdport"an operation
print.all.rankFALSEif all ranks print message
print.quietFALSEif print/cat rank information
rank.root0La rank of root
rank.source0La rank of source
rank.dest1La rank of destination
request0La request index
serv.name"spmdserv"a service name
status0La status index
tag0La tag number
unlistFALSEif unlist returning
divide.method"block"a way to divide jobs or data
mpi.finalizeTRUEif shutdown MPI
quitTRUEif quit when errors occur
msg.flushTRUEif flush message for comm.cat/comm.print
msg.barrierTRUEif barrier message for comm.cat/comm.print
Rprof.all.rankFALSEif call Rprof on all ranks
lazy.checkTRUEEif use lazy check on all ranks

The elements of .pbd_env$SPMD.OP list the implemented operations for reduce() and allreduce(). Currently, four operations are implemented "sum", "prod", "max", and "min".

The elements of .SPMD.IO are default values for input and output including

ElementsDefaultUsage
max.read.size5.2e6max of reading size (5 MB)
max.test.lines500max of testing lines
read.method"gbd"default reading method
balance.method"block"default load balance method

where balance.method is only used for "gbd" reading method when nrows = -1 and skip = 0 are set.

The elements of .pbd_env$SPMD.TP are default values mainly for task pull including

ElementsDefaultUsage
bcastFALSEif bcase() objects to all ranks
barrierTRUEif call barrier() for all ranks
tryTRUEif use try() in works
try.silentFALSEif silent the try() message

References

Programming with Big Data in R Website: https://pbdr.org/